let Task_bill = require('../model/task_bill');
let result = require('../utils/result');
let format = require('../utils/format.js')
let Sequelize = require('sequelize');
let sequelize = require('../config/db')
let Op = Sequelize.Op;
function TaskBillController(){

};

/**
 * 查询所有任务
 * @param req
 * @param res
 * @returns {Promise<void>}
 */
TaskBillController.prototype.TaskBillList = async (req,res)=>{

    await Task_bill.findAll().then(Result=>{
    res.status(200).json(result(0,'success',Result))
    }).catch(err=>{
        res.status(200).json(result(-1,'fail',err))

    });
}

let taskBillController = new TaskBillController();
module.exports = taskBillController
